package com.jrowny.events
{
	import com.jrowny.controls.SpriteElement;
	
	import flash.events.Event;
	
	public class ElementEvent extends Event
	{
		public static const ELEMENT_DELETED:String = "elmDeleted";
		public static const ELEMENT_CHANGED:String = "elmChanged";
		public static const ELEMENT_ADDED:String = "elmAdded";
		public static const ELEMENT_SELECTED:String = "elmSelected";
		
		private var _elm:SpriteElement;
		
		public function ElementEvent(type:String, spriteElement:SpriteElement, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			_elm = spriteElement;
		}
		
		public function get spriteElement():SpriteElement{
			return _elm;
		}
		public function set spriteElement(value:SpriteElement):void{
			_elm = value;
		}
	}
}